<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document   : BuscarFornecedor
    Created on : 29/07/2009, 14:20:33
    Author     : LAS
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
                <script language="JavaScript" src="./view/js/MascaraCampos.js" type="text/javascript"></script>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!--  Painel Menu  -->
                        <ice:panelLayout id="panelLayoutMenu" style="width: 100%; top: 26%; left: 9.5%"/>
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{view$Util.btn_voltar_action}" id="panelLayoutLogo" image="/resources/images/logo_soligee.png" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Fim - Painel Cabeçalho -->
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="-rave-layout: grid;" styleClass="titulo bFornecedor">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" style="height: 54px; right:10px; top: 5px; position: absolute; width: 54px">
                                <ice:commandButton action="#{view$BuscarFornecedor.btn_voltar_action}" id="btn_voltar" image="/resources/images/btn/voltar.png"
                                    immediate="true" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca">
                            <!-- Tipo Busca  -->
                            <ice:selectOneMenu binding="#{view$BuscarFornecedor.tipoBusca}" id="tipoBusca" styleClass="tipoBusca"
                                value="#{view$BuscarFornecedor.tipoBuscaSelecionado.selectedObject}" valueChangeListener="#{view$BuscarFornecedor.tipoBusca_processValueChange}">
                                <f:selectItems id="selectOneMenu1selectItems" value="#{view$BuscarFornecedor.tipoBuscaDefaultItems}"/>
                            </ice:selectOneMenu>
                            <!-- CampoABuscar  -->
                            <ice:selectInputText binding="#{view$BuscarFornecedor.campoABuscar}" id="campoABuscar" immediate="true" partialSubmit="true"
                                style="z-index: 3" styleClass="campoABuscar" valueChangeListener="#{view$BuscarFornecedor.campoABuscar_processValueChange}" width="240">
                                <f:selectItems id="item" value="#{view$BuscarFornecedor.item}"/>
                            </ice:selectInputText>
                            <!-- Botao Buscar -->
                            <ice:commandButton action="#{view$BuscarFornecedor.btnBuscar_action}" binding="#{view$BuscarFornecedor.btnBuscar}" id="btnBuscar"
                                styleClass="btnBuscar" value="Buscar"/>
                            <!-- Botão Alterar -->
                            <!-- Botão Excluir -->
                            <ice:commandButton action="#{view$BuscarFornecedor.btnAlterar1_action}" binding="#{view$BuscarFornecedor.btnAlterar1}"
                                id="btnAlterar1" immediate="true" styleClass="btnAlterar" value="Alterar"/>
                            <ice:commandButton action="#{view$BuscarFornecedor.btnConfirmaAlteracao_action}"
                                binding="#{view$BuscarFornecedor.btnConfirmaAlteracao}" id="btnConfirmaAlteracao" styleClass="btnAlterar" value="Confirmar Alteração"/>
                            <ice:commandButton action="#{view$BuscarFornecedor.btn_excluir_action}" binding="#{view$BuscarFornecedor.btn_excluir}"
                                id="btn_excluir" styleClass="btnExcluir" value="Excluir"/>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable binding="#{view$BuscarFornecedor.tabelaResultadoBusca}" id="tabelaResultadoBusca" rows="10"
                                        value="#{view$BuscarFornecedor.dataTable1Model}" var="currentRow">
                                        <f:facet name="footer"/>
                                        <f:facet name="footer"/>
                                        <ice:column id="column1">
                                            <center>
                                                <ice:outputText id="outputText1" value="#{currentRow.codPessoa}"/>
                                            </center>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Código"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column2" style="width:200px;">
                                            <h:commandLink action="#{view$BuscarFornecedor.linkAction1_action}" id="linkAction1" immediate="true" value="#{currentRow.nome}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Nome"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer"/>
                                        <ice:column id="column3" style="width:180px;">
                                            <ice:outputText id="outputText5" value="#{currentRow.razaoSocial}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Razão Social"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{view$BuscarFornecedor.tabelaResultadoBusca_firstPageAction}"
                                                    binding="#{view$BuscarFornecedor.tabelaResultadoBuscaFooterFirstButton}"
                                                    id="tabelaResultadoBuscaFooterFirstButton" immediate="true" value="|&lt;"/>
                                                <ice:commandButton action="#{view$BuscarFornecedor.tabelaResultadoBusca_previousPageAction}"
                                                    binding="#{view$BuscarFornecedor.tabelaResultadoBuscaFooterPreviousButton}"
                                                    id="tabelaResultadoBuscaFooterPreviousButton" immediate="true" value="&lt;-"/>
                                                <ice:commandButton action="#{view$BuscarFornecedor.tabelaResultadoBusca_nextPageAction}"
                                                    binding="#{view$BuscarFornecedor.tabelaResultadoBuscaFooterNextButton}"
                                                    id="tabelaResultadoBuscaFooterNextButton" immediate="true" value="-&gt;"/>
                                                <ice:commandButton action="#{view$BuscarFornecedor.tabelaResultadoBusca_lastPageAction}"
                                                    binding="#{view$BuscarFornecedor.tabelaResultadoBuscaFooterLastButton}"
                                                    id="tabelaResultadoBuscaFooterLastButton" immediate="true" value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                </center>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita -->
                            <ice:panelLayout id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <!-- Painel TabSet - BuscarFornecedor -->
                                <ice:panelTabSet binding="#{view$BuscarFornecedor.painelBuscarFornecedor}" id="painelBuscarFornecedor" styleClass="pnTabSet" tabPlacement="Top">
                                    <!-- Aba 01 -->
                                    <ice:panelTab id="aba01" label="Fornecedor">
                                        <ice:panelLayout id="conteudoAba01" layout="flow" styleClass="pnLayConteudo">
                                            <ice:panelLayout id="panelLayoutA1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--ID -->
                                                <ice:outputLabel id="tx_codigo" styleClass="rotulo pq" value="Cód."/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoCodCliente}" id="campoCodCliente" partialSubmit="true"
                                                    readonly="true" styleClass="entradaTxt pq" title="Código do Fornecedor."/>
                                                <!--Nome Completo -->
                                                <ice:outputLabel id="tx_nomeCompleto" styleClass="rotulo gd" value="Nome (*):"/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoNomeCompleto}" id="campoNomeCompleto"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o Nome Completo do Fornecedor."/>
                                                <!--CNPJ -->
                                                <ice:outputLabel id="tx_cnpj" styleClass="rotulo" value="CNPJ (*):"/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoCnpj}" id="campoCnpj" maxlength="18"
                                                    onkeypress="mascara(this,cnpj); style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o CNPJ do Fornecedor."/>
                                                <!-- Ramo Atividade -->
                                                <ice:outputLabel id="tx_ramoAtividade" styleClass="rotulo" value="Ramo (*)"/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoRamoAtividade}" id="campoRamoAtividade"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o Ramo de Trabalho do Fornecedor."/>
                                                <!--Razão Social -->
                                                <ice:outputLabel id="tx_razaoSocial" styleClass="rotulo" value="Razao Social: "/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoRazaoSocial}" id="campoRazaoSocial" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Insira o nome Fantasia do Fornecedor."/>
                                                <!--Inscrição Estadual -->
                                                <ice:outputLabel id="tx_inscricaoEstadual" styleClass="rotulo" value="Insc. Estadual (*):"/>
                                                <ice:inputText action="#{view$BuscarFornecedor.campoIncricaoEstadual_action}"
                                                    binding="#{view$BuscarFornecedor.campoIncricaoEstadual}" id="campoIncricaoEstadual"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira a Inscrição Estadual do Fornecedor."/>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutA2" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!--Pagina WEB -->
                                                <ice:outputLabel id="tx_paginaWeb" styleClass="rotulo gd" value="Página WEB: "/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoPaginaWeb}" id="campoPaginaWeb"
                                                    onkeypress="mascara(this,site);" partialSubmit="true" styleClass="entradaTxt" title="Insira o Site do Fornecedor se houver."/>
                                                <!--E-Mail -->
                                                <ice:outputLabel id="tx_email" styleClass="rotulo gd" value="E-Mail: "/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoEmail}" id="campoEmail" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Insira o e-mail de contato do Fornecedor."/>
                                                <!--Data Cadastro -->
                                                <ice:outputLabel id="tx_dataCadastro" styleClass="rotulo" value="Data do Cadastro: "/>
                                                <ice:selectInputDate binding="#{view$BuscarFornecedor.dataCadastro}" id="dataCadastro"
                                                    inputTitle="Insira a Data de realização do Cadastro." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt"
                                                    value="#{view$BuscarFornecedor.selectInputDate2Bean.date1}" visible="true"/>
                                                <!-- Telefone Comercial -->
                                                <ice:outputLabel id="tx_comercial" styleClass="rotulo" value="Tel. Comercial (*):"/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoTelefoneComercial}" id="campoTelefoneComercial"
                                                    maxlength="14" onkeypress="mascara(this,telefone);" partialSubmit="true" styleClass="entradaTxt" title="Insira o número do Telefone Comercial do Fornecedor."/>
                                                <!-- Telefone Fax -->
                                                <ice:outputLabel id="tx_Fax" styleClass="rotulo" value="Tel. Fax"/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoFax}" id="campoFax" maxlength="14"
                                                    onkeypress="mascara(this,telefone);" partialSubmit="true" styleClass="entradaTxt" title="Insira o número do Fax do Fornecedor."/>
                                            </ice:panelLayout>
                                            <!--Próximo Passo -->
                                            <ice:commandLink action="#{view$BuscarFornecedor.link_proximoPassoAba01_action}"
                                                binding="#{view$BuscarFornecedor.link_proximoPassoAba01}" id="link_proximoPassoAba01" immediate="true" styleClass="proximoBtn"/>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{view$BuscarFornecedor.tx_opCancelarAba01_action}" id="tx_opCancelarAba01"
                                                immediate="true" partialSubmit="true" styleClass="cancelarBtn minix"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <!-- Aba 02 -->
                                    <ice:panelTab id="aba02" label="Endereco">
                                        <ice:panelLayout id="conteudoAba02" layout="flow" styleClass="pnLayConteudo">
                                            <ice:panelLayout id="panelLayoutB1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--Tipo Endereço -->
                                                <!--Rua -->
                                                <ice:outputLabel id="tx_rua" styleClass="rotulo" value="Rua (*): "/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoRua}" id="campoRua"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o Endereço do Fornecedor."/>
                                                <!--Numero -->
                                                <ice:outputLabel id="tx_numero" styleClass="rotulo" value="Número (*):"/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoNumero}" id="campoNumero"
                                                    onkeypress="mascara(this,numeroEndereco); style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o Número do Endereço."/>
                                                <!--Complemento -->
                                                <ice:outputLabel id="tx_complemento" styleClass="rotulo" value="Complemento:"/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoComplemento}" id="campoComplemento" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Insira o Complemento do Endereço."/>
                                                <!--Bairro -->
                                                <ice:outputLabel id="tx_bairro" styleClass="rotulo" value="Bairro: "/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoBairro}" id="campoBairro"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o Bairro do Endereço."/>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutB2" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!--CEP -->
                                                <ice:outputLabel id="tx_cep" styleClass="rotulo" value="CEP (*): "/>
                                                <ice:inputText binding="#{view$BuscarFornecedor.campoCep}" id="campoCep" maxlength="9"
                                                    onkeypress="mascara(this,cep); style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o CEP do Endereço."/>
                                                <!--Estado -->
                                                <ice:outputLabel id="tx_uf" styleClass="rotulo" value="UF (*): "/>
                                                <ice:selectOneMenu binding="#{view$BuscarFornecedor.opcaoUf}" id="opcaoUf" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Selecione o Estado do Endereço."
                                                    value="#{view$BuscarFornecedor.ufSelecionado.selectedObject}" valueChangeListener="#{view$BuscarFornecedor.opcaoUf_processValueChange}">
                                                    <f:selectItems id="ufItems" value="#{view$BuscarFornecedor.opcaoUfItems}"/>
                                                </ice:selectOneMenu>
                                                <!--Cidade -->
                                                <ice:outputLabel id="tx_cidade" styleClass="rotulo" value="Cidade (*): "/>
                                                <ice:selectOneMenu binding="#{view$BuscarFornecedor.campoCidade}" id="campoCidade" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Selecione a Cidade do Endereço." value="#{view$BuscarFornecedor.cidadeSelecionada.selectedObject}">
                                                    <f:selectItems id="cidades1" value="#{view$BuscarFornecedor.cidades}"/>
                                                </ice:selectOneMenu>
                                            </ice:panelLayout>
                                            <!-- Link Anterior -->
                                            <ice:commandLink action="#{view$BuscarFornecedor.commandLink1_action}" id="commandLink1" styleClass="anteriorBtn"/>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{view$BuscarFornecedor.tx_opCancelarAba02_action}" id="tx_opCancelarAba02"
                                                immediate="true" styleClass="cancelarBtn minix"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                    <!--Inicio - Janela Pop-up -->
                    <ice:panelPopup autoCentre="true" binding="#{view$BuscarFornecedor.panelPopup1}" draggable="true" id="panelPopup" modal="true"
                        rendered="#{view$BuscarFornecedor.panelPopup1Bean.showDraggablePanel}" styleClass="jpopup" visible="#{view$BuscarFornecedor.panelPopup1Bean.showModalPanel}">
                        <f:facet name="header">
                            <ice:outputText id="outputText3" value="Atenção"/>
                        </f:facet>
                        <f:facet name="body">
                            <ice:panelGroup id="panelPopBody" styleClass="jpopBody">
                                <ice:panelLayout id="panelPopTxt" styleClass="jpopTxt">
                                    <ice:outputText binding="#{view$BuscarFornecedor.textoPopUp}" id="textoPopUp" value="body text"/>
                                </ice:panelLayout>
                                <ice:panelLayout id="panelPopBtn" styleClass="jpopBtn">
                                    <ice:commandButton action="#{view$BuscarFornecedor.btnPopUp1_action}" binding="#{view$BuscarFornecedor.btnPopUp1}"
                                        id="btnPopUp1" value="submit"/>
                                    <ice:commandButton action="#{view$BuscarFornecedor.btnPopUp2_action}" binding="#{view$BuscarFornecedor.btnPopUp2}"
                                        id="btnPopUp2" value="submit"/>
                                </ice:panelLayout>
                            </ice:panelGroup>
                        </f:facet>
                    </ice:panelPopup>
                    <!--Fim - Janela Pop-up -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
    <ice:selectInputDate id="selectInputDate1" style="left: 24px; top: 16px; position: absolute; height:212px; width: 190px" value="#{view$BuscarFornecedor.selectInputDateBean1.date1}"/>
</jsp:root>
